<template>
    <div class="goods-list">
        <router-link to="/home/goodsinfo" tag="div" class="goods-item">
           <img src="https://img.alicdn.com/tps/i4/TB1QtfYN3HqK1RjSZJnSuvNLpXa.jpg_250x250Q90.jpg_.webp" alt="">
           <h1 class="title">华为P30 Pro</h1>
           <div class="info">
               <p class="price">
                   <span class="new">￥5488</span>
                   <span class="old">￥5688</span>
               </p>
               <p class="sell">
                   <span>热卖中</span>
                   <span>还剩:666件</span>
               </p>
            </div>
       </router-link>
       <router-link to="/home/goodsinfo" tag="div" class="goods-item">
           <img src="https://i1.mifile.cn/a1/pms_1550642182.7527088!220x220.jpg" alt="">
           <h1 class="title">小米9透明尊享版</h1>
           <div class="info">
               <p class="price">
                   <span class="new">￥2799</span>
                   <span class="old">￥2999</span>
               </p>
               <p class="sell">
                   <span>热卖中</span>
                   <span>还剩:60件</span>
               </p>
            </div>
       </router-link>
       <router-link to="/home/goodsinfo" tag="div" class="goods-item">
           <img src="https://img.alicdn.com/imgextra/i2/1714128138/O1CN01jgTHX329zFhAdkDUk_!!1714128138.png_250x250Q90.jpg_.webp" alt="">
           <h1 class="title">Redmi Note7 Pro</h1>
           <div class="info">
               <p class="price">
                   <span class="new">￥1399</span>
                   <span class="old">￥1599</span>
               </p>
               <p class="sell">
                   <span>热卖中</span>
                   <span>还剩:999件</span>
               </p>
            </div>
       </router-link>
       <router-link to="/home/goodsinfo" tag="div" class="goods-item">
           <img src="https://img.alicdn.com/imgextra/i2/1714128138/O1CN0103lbM229zFiQY6knL_!!1714128138.png_250x250Q90.jpg_.webp" alt="">
           <h1 class="title">Redmi K20</h1>
           <div class="info">
               <p class="price">
                   <span class="new">￥1999</span>
                   <span class="old">￥2099</span>
               </p>
               <p class="sell">
                   <span>热卖中</span>
                   <span>还剩:999件</span>
               </p>
            </div>
       </router-link>
       <router-link to="/home/goodsinfo" tag="div" class="goods-item">
           <img src="https://img.alicdn.com/tps/i4/TB1DmirdB1D3KVjSZFySuvuFpXa.jpg_250x250Q90.jpg_.webp" alt="">
           <h1 class="title">华为nova5 Pro</h1>
           <div class="info">
               <p class="price">
                   <span class="new">￥2999</span>
                   <span class="old">￥3099</span>
               </p>
               <p class="sell">
                   <span>热卖中</span>
                   <span>还剩:999件</span>
               </p>
            </div>
       </router-link>
    </div>
</template>
<script>
export default {
    
}
</script>
<style lang="less" scoped>
.goods-list{
    padding: 7px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    .goods-item{
        width: 49%;
        border: 1px solid #ccc;
        box-shadow: 0 0 8px #ccc;
        margin: 4px 0;
        padding: 2px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 273px;
        img{
            width: 100%;
        }
        .title{
            font-size: 16px;
        }
        .info{
            background-color: #eee;
            p{
                margin: 0;
                padding: 5px;
            }
            .price{
                .new{
                    color: red;
                    font-weight: bold;
                    font-size: 16px
                }
                .old{
                    font-size: 12px;
                    text-decoration: line-through;
                }
            }
            .sell{
                display: flex;
                justify-content: space-between;
                font-size: 13px;
            }
        }
    }

}

</style>
